import React, { Component } from 'react';
// 引入加载组件
import { Spin } from 'antd';    
import '@/assets/css/loading.css'
class Loding extends Component {
    // 设置默认值 defaultProps 为固定写法
    static defaultProps = {
        spinning:true,
        tip:'加载中...'
    }
    render() {
        return (
            <div className='loadingBox'>
                <Spin size='large' spinning={this.props.spinning} tip={this.props.tip}/>
            </div>
        );
    }
}

export default Loding;
